//
//  ZLLearnSelectionBottomButtonView.m
//  ZLExamination
//
//  Created by Lei_Zhong_Xun on 2017/8/23.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "ZLLearnSelectionBottomButtonView.h"
#define buttonWidth kSCREEN_WIDTH  / 3

@implementation ZLLearnSelectionBottomButtonView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.catalogueButton];
        
        [_catalogueButton mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.bottom.equalTo(self);
        }];

    }
    return self;
}


- (UIButton *)catalogueButton
{
    if (!_catalogueButton) {
        _catalogueButton = [UIButton buttonWithType:UIButtonTypeCustom];
        _catalogueButton.backgroundColor = kMY_BLUE_COLOR;
        [_catalogueButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
        _catalogueButton.titleLabel.font = kCX_FONT(17);
        [_catalogueButton setTitle:@"前往练习" forState:UIControlStateNormal];
    }
    return _catalogueButton;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
